package day.day10;

import java.util.Comparator;

public class PersonComparator implements Comparator<Person>{

	@Override
	public int compare(Person o1, Person o2) {
		//return o1.getVip().compareTo(o2.getVip()); // vip1>vip2
		if(o1.getVip()>o2.getVip())
			return 1;
		else return -1;
	}
}
